package string;

public class StringBUilder1Demo {
    public static void main(String[] args) {
        StringBuilder builder1 = new StringBuilder("think in java");

        String s = "snie";
        builder1.append("ssf");
        s = builder1.toString() + s;
        builder1.replace(2, 5, "没在线呢");

        System.out.println(s);
        builder1.delete(2, 5);
        System.out.println(builder1);
        builder1.insert(6, "I long");
        System.out.println(builder1);
    }
}
